package com.aaa.entity;

import javax.persistence.*;
import java.sql.Date;
import java.util.Objects;

@Entity
@Table(name = "paikemingxi", schema = "trainingdb", catalog = "")
public class PaikemingxiEntity {
    private int paikeId;
    private int classId;
    private Date starttime;
    private String shiduan;
    private String keshi;
    private String classroom;
    private String teacher;
    private String keshifei;
    private String zhujiao;
    private String zhujiaokeshifei;
    private String dayweek;

    public int getClassId() {
        return classId;
    }

    public void setClassId(int classId) {
        this.classId = classId;
    }

    public PaikemingxiEntity(int classId, String shiduan, String keshi, String classroom, String teacher, String dayweek) {
        this.classId = classId;
        this.shiduan = shiduan;
        this.keshi = keshi;
        this.classroom = classroom;
        this.teacher = teacher;
        this.dayweek = dayweek;
    }

    @Id
    @Column(name = "paike_id")
    public int getPaikeId() {
        return paikeId;
    }

    public void setPaikeId(int paikeId) {
        this.paikeId = paikeId;
    }

    @Basic
    @Column(name = "starttime")
    public Date getStarttime() {
        return starttime;
    }

    public void setStarttime(Date starttime) {
        this.starttime = starttime;
    }

    @Basic
    @Column(name = "shiduan")
    public String getShiduan() {
        return shiduan;
    }

    public void setShiduan(String shiduan) {
        this.shiduan = shiduan;
    }

    @Basic
    @Column(name = "keshi")
    public String getKeshi() {
        return keshi;
    }

    public void setKeshi(String keshi) {
        this.keshi = keshi;
    }

    @Basic
    @Column(name = "classroom")
    public String getClassroom() {
        return classroom;
    }

    public void setClassroom(String classroom) {
        this.classroom = classroom;
    }

    @Basic
    @Column(name = "teacher")
    public String getTeacher() {
        return teacher;
    }

    public void setTeacher(String teacher) {
        this.teacher = teacher;
    }

    @Basic
    @Column(name = "keshifei")
    public String getKeshifei() {
        return keshifei;
    }

    public void setKeshifei(String keshifei) {
        this.keshifei = keshifei;
    }

    @Basic
    @Column(name = "zhujiao")
    public String getZhujiao() {
        return zhujiao;
    }

    public void setZhujiao(String zhujiao) {
        this.zhujiao = zhujiao;
    }

    @Basic
    @Column(name = "zhujiaokeshifei")
    public String getZhujiaokeshifei() {
        return zhujiaokeshifei;
    }

    public void setZhujiaokeshifei(String zhujiaokeshifei) {
        this.zhujiaokeshifei = zhujiaokeshifei;
    }

    @Basic
    @Column(name = "dayweek")
    public String getDayweek() {
        return dayweek;
    }

    public void setDayweek(String dayweek) {
        this.dayweek = dayweek;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        PaikemingxiEntity that = (PaikemingxiEntity) o;
        return paikeId == that.paikeId &&
                Objects.equals(starttime, that.starttime) &&
                Objects.equals(shiduan, that.shiduan) &&
                Objects.equals(keshi, that.keshi) &&
                Objects.equals(classroom, that.classroom) &&
                Objects.equals(teacher, that.teacher) &&
                Objects.equals(keshifei, that.keshifei) &&
                Objects.equals(zhujiao, that.zhujiao) &&
                Objects.equals(zhujiaokeshifei, that.zhujiaokeshifei) &&
                Objects.equals(dayweek, that.dayweek);
    }

    @Override
    public int hashCode() {
        return Objects.hash(paikeId, starttime, shiduan, keshi, classroom, teacher, keshifei, zhujiao, zhujiaokeshifei, dayweek);
    }
}
